package object;

public class Teacher extends Person {
    public Teacher(int id, String name, String gender) {
        super(id, name, gender);
    }

    public void createCourse(int courseId, String courseName, String location, String time) {
        Course course = new Course(courseId, courseName, location, time, this);
        setCourse(course);
    }
}

